<template>
  <div>
    <leavelist :list="list" type="1"></leavelist>
  </div>
</template>
<script lang='ts' setup>
import { ref, onMounted } from 'vue';
import leavelist from '@/components/LeaveList.vue';
import { getLeave } from '@/serveice/leavelist'
let list = ref<any>([]);
onMounted(async () => {
  let { data } = await getLeave();
  if (data.code == 200) {
    list.value = data.list;
  }
})

</script>
<style lang='less' scoped>

</style>